package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName product_info
 */
@TableName(value ="product_info")
public class ProductInfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String productname;

    /**
     * 
     */
    private String productinfo;

    /**
     * 
     */
    private String appid;

    /**
     * 
     */
    private Object producttype;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getProductname() {
        return productname;
    }

    /**
     * 
     */
    public void setProductname(String productname) {
        this.productname = productname;
    }

    /**
     * 
     */
    public String getProductinfo() {
        return productinfo;
    }

    /**
     * 
     */
    public void setProductinfo(String productinfo) {
        this.productinfo = productinfo;
    }

    /**
     * 
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 
     */
    public Object getProducttype() {
        return producttype;
    }

    /**
     * 
     */
    public void setProducttype(Object producttype) {
        this.producttype = producttype;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductInfo other = (ProductInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProductname() == null ? other.getProductname() == null : this.getProductname().equals(other.getProductname()))
            && (this.getProductinfo() == null ? other.getProductinfo() == null : this.getProductinfo().equals(other.getProductinfo()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getProducttype() == null ? other.getProducttype() == null : this.getProducttype().equals(other.getProducttype()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProductname() == null) ? 0 : getProductname().hashCode());
        result = prime * result + ((getProductinfo() == null) ? 0 : getProductinfo().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getProducttype() == null) ? 0 : getProducttype().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productname=").append(productname);
        sb.append(", productinfo=").append(productinfo);
        sb.append(", appid=").append(appid);
        sb.append(", producttype=").append(producttype);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}